import json
from config import BASE_DIR


def query_data():
    with open(BASE_DIR+"/data/login_data_json.json", encoding='utf-8') as f:
        data = json.load(f)
    data_new = []
    for i in data:
        ls = []
        ls.append(i.get('message'))
        ls.append(i.get('login_data'))
        ls = tuple(ls)
        data_new.append(ls)
    return data_new

